package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.beans.Transient;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 出入量记录表
 * </p>
 *
 * @author zqb
 * @date 2024-07-23 10:12:06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_io_record")
public class BIoRecord extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 病人健康号patient_ident
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "病人健康号patient_ident")
    private String patientIdent;
    /**
     * 病人住院号
     */
    @TableField(value = "hospital_number", condition = LIKE)
    @Schema(description = "病人住院号")
    private String hospitalNumber;
    /**
     * 时间
     */
    @TableField(value = "time", condition = EQUAL)
    @Schema(description = "时间")
    private LocalDateTime time;
    /**
     * 项目值
     */
    @TableField(value = "io_value", condition = LIKE)
    @Schema(description = "项目值")
    private String ioValue;
    /**
     * 出入量配置id
     */
    @TableField(value = "io_id", condition = EQUAL)
    @Schema(description = "出入量配置id")
    private Long ioId;
    /**
     * 类型 1、入量 2、出量
     */
    @TableField(value = "is_type", condition = EQUAL)
    @Schema(description = "类型 1、入量 2、出量")
    private Integer isType;

    /**
     * 选项配置表编码
     */
    @TableField(value = "item_code", condition = LIKE)
    @Schema(description = "选项配置表编码")
    private String itemCode;
    /**
     * 模块名称
     */
    @TableField(value = "model_code", condition = LIKE)
    @Schema(description = "模块名称")
    private String modelCode;

    /**
     * 药品规格
     */
    @TableField(value = "spec", condition = LIKE)
    @Schema(description = "药品规格")
    private String spec;
    /**
     * 
     */
    @TableField(value = "is_yao_sum", condition = EQUAL)
    @Schema(description = "")
    private Integer isYaoSum;
    /**
     * 
     */
    @TableField(value = "real_time", condition = EQUAL)
    @Schema(description = "")
    private LocalDateTime realTime;
    /**
     * 药名
     */
    @TableField(value = "medication", condition = LIKE)
    @Schema(description = "药名")
    private String medication;
    /**
     * 
     */
    @TableField(value = "group_id", condition = EQUAL)
    @Schema(description = "")
    private String groupId;
    /**
     * 
     */
    @TableField(value = "dy_amount", condition = LIKE)
    @Schema(description = "")
    private String dyAmount;
    /**
     * 
     */
    @TableField(value = "dy_amount_unit", condition = LIKE)
    @Schema(description = "")
    private String dyAmountUnit;
    /**
     * 
     */
    @TableField(value = "is_master", condition = EQUAL)
    @Schema(description = "")
    private Integer isMaster;
    /**
     * 
     */
    @TableField(value = "plan_time", condition = EQUAL)
    @Schema(description = "")
    private LocalDateTime planTime;
    /**
     * 是否显示到特护单0 否 1 是
     */
    @TableField(value = "is_show_care", condition = EQUAL)
    @Schema(description = "是否显示到特护单0 否 1 是")
    private Integer isShowCare;

    @TableField(value = "source", condition = EQUAL)
    @Schema(description = "修改来源 hand care his")
    private String source;

    @TableField(exist = false)
    private String itemName;

    @Schema(description = "执行用药id")
    private Long yaoId;


}
